﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddGoods.aspx.cs" Inherits="GoodsManagerDemo.AddGoods" Theme="default"%>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>添加商品</title>
</head>
<body>
    <form id="form1" runat="server">
     <div class="content">
        <div>【添加商品】<hr /></div>
        <div>
         <table class="tbcont">
            <tr>
                <td class="tdleft">商品类别：</td>
                <td>
                    <asp:DropDownList ID="ddlType" runat="server" 
                        DataSourceID="sqlType" DataTextField="tName" 
                        DataValueField="tID" Width="127px">
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="sqlType" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:smdb %>" 
                        SelectCommand="SELECT * FROM GoodsType">
                    </asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td  class="tdleft">编号：</td><td>
                    <asp:TextBox ID="txtCode" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr><td class="tdleft"  >名称：</td>
                <td><asp:TextBox ID="txtName" runat="server" CssClass="txtwidth"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdleft" >价格：</td><td>
                <asp:TextBox ID="txtPrice" runat="server"></asp:TextBox></td>
            </tr>
            <tr><td class="tdleft" >入库数量：</td><td>
                                <asp:TextBox ID="txtQuantity" runat="server"></asp:TextBox>
                                </td></tr>
            <tr>
                <td class="tdleft" >供应商城市：</td>
                <td><asp:TextBox ID="txtCity" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdleft" >运费：</td><td><asp:TextBox ID="txtFeight" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdleft" >商品图片：</td>
                <td><asp:FileUpload ID="fldImg" runat="server" /></td>
            </tr>
            <tr>
                <td class="tdleft" >商品描述：</td>
                <td><asp:TextBox ID="txtInfo" runat="server" TextMode="MultiLine"  CssClass="txtwidth" Height="100px"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdleft" >
                <asp:Button ID="btnAdd" runat="server" Text="添加" style="height: 26px" OnClick="btnAdd_Click" />
                </td>
                <td></td>
            </tr>
        </table>
        </div>
     </div>
    </form>
</body>
</html>
